﻿using System.IO.Ports;

namespace CleverDD.Model.Communication.SerialPort
{
    public class SerialPortInfoEntity : BaseEntity
    {
        public string Name = "";

        public string PortName = "";
        public int BaudRate = 9600;
        public Parity Parity = Parity.None;
        public int DataBits = 8;
        public StopBits StopBits = StopBits.None;
       

        public bool IsInUse = true;
        public SerialPortDataType DataType = SerialPortDataType.Ascii;
        public string SendData = "";
        public bool IsWaitData;



    }




    public enum SerialPortDataType
    {
        Ascii,
        Hex,
    }

    public enum YesOrNoEnum
    {
        是,
        否,
    }
}
